package com.lagou.boot;

import com.lagou.service.UserServiceImpl;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;


@SpringBootApplication
@ComponentScan({"com.lagou.service","com.lagou.context"})
public class ServerBoot {


    public static void main(String[] args) throws InterruptedException {

        //启动服务器
        UserServiceImpl.startServer("127.0.0.1",8999);
        SpringApplication.run(ServerBoot.class,args);
    }
}
